package com.yang.storage.service;

import com.yang.springcloud.pojo.ShoppingCartGoods;
import com.yang.storage.dao.StorageImp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
public class StorageServiceImp implements StorageService {
    @Autowired
    StorageImp storageImp;

    @Override
    @Transactional
    public Map<String, Object> updateStock(List<ShoppingCartGoods> goodsList) {
        return storageImp.updateStock(goodsList);
    }
}
